package com.sbl.bajw.pc.action;

import java.util.HashMap;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sbl.bajw.common.web.RequestUnit;
import com.sbl.bajw.pc.service.StatisticsService;

@Controller
@RequestMapping("/Statistics")
public class StatisticsAction {
	
	@Resource
	private StatisticsService service;
	
	@RequestMapping(value = "/StatisticsCamera")
	public @ResponseBody String StatisticsCamera(HttpServletRequest request, HttpServletResponse response) throws Exception{
		HashMap<String, Object> parm = RequestUnit.getHashMapParmO();
		String result = service.StatisticsCamera(parm);
		return result;
	}
	
	@RequestMapping(value = "/StatisticsCameraHouse")
	public @ResponseBody String StatisticsCameraHouse(HttpServletRequest request, HttpServletResponse response) throws Exception{
		HashMap<String, Object> parm = RequestUnit.getHashMapParmO();
		String result = service.StatisticsCameraHouse(parm);
		return result;
	}
	
	@RequestMapping(value = "/StatisticsCameraAndHouse")
	public @ResponseBody String StatisticsCameraAndHouse(HttpServletRequest request, HttpServletResponse response) throws Exception{
		HashMap<String, Object> parm = RequestUnit.getHashMapParmO();
		String result = service.StatisticsCameraAndHouse(parm);
		return result;
	}
}
